<?php

namespace app\admin\model\sum;

use app\admin\model\sum\Common;

class CardLog extends Common
{

    
    // 表名
    protected $name = 'sum_card_log';

    // 追加属性
    protected $append = [
        'image_url',
    ];

    public function getImageUrlAttr($value, $data)
    {
        $image_url = $data['image']?cdnurl($data['image'], true):'';
        return $image_url;
    }
}
